#!/bin/bash

chown root:wheel "${3}/Library/LaunchDaemons/edu.denison.setup.plist"
chmod 644 "${3}/Library/LaunchDaemons/edu.denison.setup.plist"
chown root:wheel "${3}/Library/Scripts/denison-setup"
chmod 770 "${3}/Library/Scripts/denison-setup"


# Since we're installing DenisonSetup, we can assume that setup needs to run
# again. So, if we're upgrading, we'll want to remove the flag file that
# prevents a full execution.
if [ -f "${3}/private/var/db/.DenisonSetupDone" ];then
	rm "${3}/private/var/db/.DenisonSetupDone"
fi

exit 0
